package Zhouliu;
//销售人员
public class SalesEmployee extends Employee{
    private int monSalVol;
    private double push;

    public SalesEmployee(){
    }
    public SalesEmployee(int monSalVol, double push) {
        super("赵四",3);
        this.monSalVol = monSalVol;
        this.push = push;
    }

    @Override
    public double getSalary(int month) {
        double price = monSalVol*push;
        if (month == getBirMonth()){
            price+=100;
            System.out.println("生日红包:"+100+"元!");
        }
        System.out.println(getName()+"薪资:"+price);
        return price;
    }
    @Override
    public void print() {
        super.print();
    }
    public int getMonSalVol() {
        return monSalVol;
    }
    public void setMonSalVol(int monSalVol) {
        this.monSalVol = monSalVol;
    }
    public double getPush() {
        return push;
    }
    public void setPush(double push) {
        this.push = push;
    }
}


